﻿<%@ Page Language="C#" MasterPageFile="~/member/mMenber.master" AutoEventWireup="true" CodeBehind="area5info.aspx.cs" Inherits="map.manage.area5info" Title="地标/小区详细信息" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head2" runat="server">
    <%@ Register Assembly="FredCK.FCKeditorV2" Namespace="FredCK.FCKeditorV2" TagPrefix="FCKeditorV2" %>
    <%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc1" %>
 <link href="../outstyle.css" rel="stylesheet" type="text/css" />
    <link href="../css/CustomStyleSheet.css" rel="stylesheet" type="text/css" />
    <link href="../Stylesheet1.css" rel="stylesheet" type="text/css" />
    <script src="../js/dropdowncontent.js" type="text/javascript"></script>
 <script src="../js/CBScript.js" type="text/javascript"></script>
    <style type="text/css">
         .style2
        {
            width: 100px;
            vertical-align: top;
        }
        .style7
        {
            width: 12%;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder3" runat="server">
    
    <asp:GridView ID="GridView1" runat="server" AutoGenerateColumns="False" 
            Width="590px" DataKeyNames="RECID" 
                CellPadding="4" ForeColor="Black" GridLines="Vertical" 
               OnRowDeleting="GridView1_RowDeleting"
                onselectedindexchanging="GridView1_SelectedIndexChanging" 
                BorderWidth="1px" BackColor="White" BorderColor="#DEDFDE" 
        BorderStyle="None">
                <RowStyle BackColor="#F7F7DE" />
                <Columns>                    
                  <asp:BoundField DataField="RECID" HeaderText="RECID" Visible="False" />
                    <asp:BoundField DataField="BizAreaName" HeaderText="地标名称" >
                      <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                      <asp:BoundField DataField="taobaolong" HeaderText="经度" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:BoundField DataField="taobaolat" HeaderText="纬度" >
                    <ItemStyle HorizontalAlign="Center" />
                    </asp:BoundField>
                    <asp:CommandField ShowSelectButton="True" />
                    <asp:CommandField ShowDeleteButton="True" />
                </Columns>
                <FooterStyle BackColor="#CCCC99" />
                <PagerStyle BackColor="#F7F7DE" ForeColor="Black" HorizontalAlign="Right" />
                <EmptyDataTemplate>
                    当前区内没有区域数据,请在下方增加区域.
                </EmptyDataTemplate>
                <SelectedRowStyle BackColor="#CE5D5A" Font-Bold="True" ForeColor="White" />
                <HeaderStyle BackColor="#6B696B" Font-Bold="True" ForeColor="White" />
                <AlternatingRowStyle BackColor="White" />
            </asp:GridView> 
            <div>
 分区规则：
                <asp:UpdatePanel ID="UpdatePanel1" runat="server">
                <ContentTemplate>
                <table  style ="border: 1px solid #C0C0C0; width:100%; vertical-align:top;">
                    <tr>
                        <td style="width:16%;">
                            分级一：<asp:TextBox ID="TextBox2" runat="server" 
                                ontextchanged="TextBox2_TextChanged" ></asp:TextBox>
                            <br />(区，座等)</td>
                        <td style="width:16%;">
                            分级二：<asp:TextBox ID="TextBox4" runat="server" ></asp:TextBox>
                            <br />(楼号等)</td>
                        <td style="width:16%;">
                            分级三：<asp:TextBox ID="TextBox6" runat="server" ></asp:TextBox>
                            <br />(房间号，铺面号等)</td>
                    </tr>
                    <tr>
                        <td>
                            <asp:Button ID="Button1" runat="server" Text="修改" onclick="Button1_Click" />
                            <asp:Label ID="Label2" runat="server" ForeColor="Lime" Text=""></asp:Label>
                        </td>
                        <td>
                            &nbsp;</td>
                        <td>
                            &nbsp;</td>
                    </tr>
                </table>
             </ContentTemplate>
                </asp:UpdatePanel>
            </div>
             <hr />
            <div class="Section">
            <div class="title1">     <div class="Section">
           <div class="title">详细资料</div>
            <div class="context1">
            <%--<asp:Label ID="despLabel" runat="server"></asp:Label>--%>
            <asp:Literal ID="desp" runat="server"></asp:Literal>
             <FCKeditorV2:FCKeditor ID="FCKeditor_desk" runat="server" Height="300px" 
                    Width="100%" Visible="true">
        </FCKeditorV2:FCKeditor>
            </div>
            
            </div>
            <asp:Button ID="editDesp" runat="server" Text="编辑" class="areaInfoEditButton"
        onclick="editDesp_Click" Visible="false" />
            <div class="Section">
            <div class="title">地标配套</div>
            <div class="context1">
           <%-- <asp:Label ID="transparentLabel" runat="server"></asp:Label>--%>
            <asp:Literal ID="transparent" runat="server"></asp:Literal>
             <FCKeditorV2:FCKeditor ID="FCKeditor_transparent" runat="server" Height="300px" 
                    Width="100%" Visible="true">
                    </FCKeditorV2:FCKeditor>
            </div>
            <asp:Button ID="save" runat="server" Text="保存" onclick="save_Click" />
            
            </div>
             <asp:Button ID="editTransparent" class="areaInfoEditButton" runat="server" Text="编辑" 
        onclick="editTransparent_Click" Visible="false"/>
        </div>
         </div><hr />
        <div id="bizarealogo">
        <asp:Image ID="areaLogo" Height="100px" Width="100px" AlternateText="地标Logo" runat="server"/>        
                <asp:FileUpload ID="FileUpload2" runat="server" /><asp:Button ID="Button2" runat="server" Text="上传标志" onclick="BTNUp1_Click"
            Width="56px" />
        </div>
      
       
        <div id="photoSection">
        <div id="photoesView">
          <asp:UpdatePanel ID="pophoes" runat="server">
           <ContentTemplate>
             <asp:DataList ID="DataList1" runat="server" BackColor="White"
            BorderColor="#336666" BorderStyle="Double" BorderWidth="3px" CellPadding="4"
            DataKeyField="RECID"  GridLines="Both" RepeatColumns="3" onitemcommand="DataList1_ItemCommand">
            <FooterStyle BackColor="White" ForeColor="#333333" />
             <ItemStyle BackColor="White" ForeColor="#333333" VerticalAlign="Middle" HorizontalAlign="Center" />
            <SelectedItemStyle BackColor="#339966" Font-Bold="True" ForeColor="White" />
            <HeaderStyle BackColor="#336666" Font-Bold="True" ForeColor="White" />
            <ItemTemplate>                   
            <div class="imageBlock">       
                <asp:Image ID="Image2" runat="server" Height="96px"
                    ImageUrl='<%# Eval("BizAreaImagePath") %>' Width="175px" />
                    </div>   
                      <br />
                    <span class="deescripton">说明:</span>
                <asp:Label ID="PictureIdLabel" CssClass="deescripton" runat="server" Text='<%# Eval("BizAreaImageDescription") %>' />
              
                <br />
                <asp:LinkButton style="text-align:center"  runat="server" ID="DeleteButton" CommandName="delete" CommandArgument ='<%#Eval("RECID").ToString() %>' Text="删除"/>
                 <cc1:ConfirmButtonExtender ID="ConfirmButtonExtender1" runat="server" TargetControlID="DeleteButton" ConfirmText="确定要删除吗？">

                 </cc1:ConfirmButtonExtender>
                <br />
            </ItemTemplate>
        </asp:DataList>
        </ContentTemplate></asp:UpdatePanel>
        </div>
        <div id="uploadphoto">
        <asp:FileUpload ID="FileUpload1" runat="server" /><br /><asp:Label ID="labe22" runat="server" Text="图片说明:"></asp:Label><asp:TextBox ID="imageDespcripton" runat="server"></asp:TextBox>
        <br/>
        <asp:Button ID="BTNUp" runat="server" Text="上传" onclick="BTNUp_Click"
            Width="56px" /> 
        </div>
        </div>
            <asp:Label ID="textSource" Visible="false" runat="server"></asp:Label>
             <asp:Label ID="Label1" Visible="false" runat="server"></asp:Label>
             <br />
            <div id="editor">
            <table style="vertical-align: top; width:100%">
    <tr><td class="style2">
                <asp:Label ID="fck_title" runat="server"></asp:Label>
            </td>
            <td>
                 <FCKeditorV2:FCKeditor ID="Fck_Content" runat="server" Height="300px" Width="100%">
        </FCKeditorV2:FCKeditor>
            </td>
            <td>
            </td>
        </tr>
            </table>
        <asp:Button ID="SubmitEdit" runat="server" text="提交修改" onclick="SubmitEdit_Click"/>
            </div>
</asp:Content>
